#pragma once

#include "qlib/all.h"
#include "../../render/components.hpp"
namespace qbe::tool::DRC {

struct RenderModel {
  //可视化
  qbe::render::LineListMesh polygons; //高亮多边形
  qbe::render::LineListMesh lines; //高亮线
  qbe::render::PointMesh points; //修剪的线
  int time = 0; //计时器
  void update(std::vector<std::vector<qlib::Vec2d>> _polygons,std::vector<std::vector<qlib::Vec2d>> _lines, std::vector<qlib::Vec2d> _points){
    polygons = qbe::render::LineListMesh(_polygons);
    lines = qbe::render::LineListMesh(_lines);
    points = qbe::render::PointMesh(_points);
  }
};

}